package com.example.qzzm;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.ImageView;

/**
 * 用户协议界面
 * 
 * @author Administrator
 *
 */
public class AgreeActivity extends Activity {

	// 获得控件
	private WebView wbAgree;
	private ImageView ivBack;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_agreement);

		initView();
		initListeners();

		initData();
	}

	private void initData() {
		wbAgree.loadUrl("http://www.immomo.com/aboutus.html");
	}

	private void initView() {
		wbAgree = (WebView) findViewById(R.id.wb_xy);
		ivBack = (ImageView) findViewById(R.id.iv_back);
	}

	private void initListeners() {
		ivBack.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}

}
